Arduino_H7_Video: handling errors at initialization time#1015
Arduino_H7_Video: handling errors at initialization time#1015leonardocavagnis merged 2 commits intoarduino:mainfrom dmazzella:patch-1
Conversation
…etry counter to avoid infinite wait on anx7625_wait_hpd_event
|
the motivation for this pr is to be able to reboot the board in case the display (USBCVideo) does not turn on for some reason, unfortunately it often happens that after a reset (ota firmware update) of the board the display does not turn on again and a reset fixes this, the problem is that in my specific case it happens on “remote” machines and not being physically there to reset it this is a problem. // Initialize display
int display_ec = Display.begin();
if (display_ec != 0) {
NVIC_SystemReset();
}for copleteness i use the USB-C to HDMI Adapter from Arduino store |
|
@leonardocavagnis please take a look at it and let me know. |
leonardocavagnis
left a comment
There was a problem hiding this comment.
Sounds good!
Just a small fix: the Display.begin() function returns 0 on success or a value >0 if it fails.
0: Success
1: Unknown error
2: Insufficient drawing memory buffer
(NEW) 3: Video controller initialization failure
Co-authored-by: Leonardo Cavagnis <45899760+leonardocavagnis@users.noreply.github.com>
|
Changes in this PR break the USB-C display for me (also see #1075 which might be related). I think the main issue is |
handling errors at initialization time with added retry counter to avoid infinite wait on anx7625_wait_hpd_event